/**
* ZookeeperRegistryFactory.java 2020/5/21 4:48 下午
* Copyright ©2020 www.treefinance.com.cn All rights reserved.
* PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package configcenter.zookeeper.primary.server;

import common.model.MagicUrl;

/**
 * File：ZookeeperRegistryFactory.java<br>
 * Title: <br>
 * Description: <br>
 * Company: www.treefinance.com.cn <br>
 * @author heyouchi
 * Date: 2020/5/21
 */
public class ZookeeperRegistryFactory implements RegistryFactory {

  private ZookeeperServer zookeeperServer;

  public RegistryServer getRegistryServer(MagicUrl url){
    if(zookeeperServer == null){
      zookeeperServer = new ZookeeperServer(url);
    }
    return zookeeperServer;
  }
}
